<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<div class="box" style="text-align: left; height: auto;">
	<div id="forum_question">
		<table style="width: 99%" align="center" cellspacing="2">
			<tbody style="width: 100%" >
				<tr>
					<td align="left">หัวข้อกระทู้ล่าสุด</td>
				</tr>
			</tbody>
		</table><br/>
		<table style="width: 99%;border: 1px solid #239cc7; " align="center" cellspacing="2">
			<tbody style="width: 100%" >
			<?php $fc=0; foreach($forum_questions as $fq){?>
				<?php $style =""; if($fc%2==0){$style = "background-color: #f7fbff";}else{$style = "background-color: #ffffff";} $fc++;?>
				<tr style="<?=$style?>;height: 30px">
					<td><?=$fq->id?></td>
					<td>
					<a href="<?php echo url::base(FALSE)?>index.php/forum/forum_question/findForumQuestionById?id=<?=$fq->id?>"><?=$fq->headline?></a>
					</td>
					<td><?=$fq->post_date?></td>
				</tr>
				<?php }?>
			</tbody>
		</table><br/>
		<?=$pagination->render()?>
		<?php echo "<br>เวลาที่ใช้ในการทำงานหน้านี้คือ  : {execution_time}"?>
	</div>
</div>
